From 6d302480b4fad41d5df7a2b08a36394dcd287841 Mon Sep 17 00:00:00 2001 From: Alex Williamson Date: Thu, 20 Mar 2008 14:12:07 -0600 Subject: [PATCH] [IA64] Increase hypervisor memory reservation Recent additions to the xen codebase have inflated the memory requirements of the hypervisor a bit. To compensate, we need to increase the amount of memory we try to reserve for the hypervisor when allocating "all" system memory to dom0. Fixes kernel panics on a 2GB rx2600 in our lab, as well as on misc. test systems with between 16 and 128GB when they're configured to allocate "all" memory to dom0. Signed-off-by: Jarod Wilson --- xen/arch/ia64/xen/domain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/ia64/xen/domain.c b/xen/arch/ia64/xen/domain.c index 47c1e372e4..70831508aa 100644 --- a/xen/arch/ia64/xen/domain.c +++ b/xen/arch/ia64/xen/domain.c @@ -1943,10 +1943,10 @@ static void __init calc_dom0_size(void) * for DMA and PCI mapping from the available domheap pages. The * chunk for DMA, PCI, etc., is a guestimate, as xen doesn't seem * to have a good idea of what those requirements might be ahead - * of time, calculated at 1MB per 4GB of system memory */ + * of time, calculated at 128MB + 1MB per 4GB of system memory */ domheap_pages = avail_domheap_pages(); p2m_pages = domheap_pages / PTRS_PER_PTE; - spare_hv_pages = domheap_pages / 4096; + spare_hv_pages = 8192 + (domheap_pages / 4096); max_dom0_size = (domheap_pages - (p2m_pages + spare_hv_pages)) * PAGE_SIZE; printk("Maximum permitted dom0 size: %luMB\n", -- 2.30.2